package ssm.shopping.dao.interfaces;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import ssm.shopping.entity.ParentEntity;

/**
 * 
 * @author roberthuang
 *
 */
public interface IBaseDao {
	
	//插入
	public void insert(ParentEntity entity);
	
	//按id删除
	public void deleteById(int id);
	
	//按id查询
	public ParentEntity queryById(int id);
	
	//分页查询
	public List<ParentEntity> queryByPage(Map<String,Object> contion,int firstResult,int maxResult);
	
	//条件查询
	public List<ParentEntity> queryAllByContion(@Param("contion")Map<String,Object> contion);
	
}
